package bhbt.job;


import javax.annotation.Resource;

import org.springframework.scheduling.annotation.Scheduled;

import bhbt.service.WageCurrentService;
import bhbt.utils.Param;






public class KuangJob {
	 
	@Resource
	private WageCurrentService wageCurrentService;
	 

	
	//晚上十二点汇总 
	@Scheduled(cron = "0 0 0 * * ?") 
	void wageCount() throws Exception{   
		System.out.println("**************矿点汇总---开始**************");
		if(Param.hui){
			Param.hui=false;
			wageCurrentService.saveKuangCount();
			 
			Param.hui=true;
		}
		
		
		System.out.println("**************矿点汇总---结束**************");   
    }
	 

 

	public WageCurrentService getWageCurrentService() {
		return wageCurrentService;
	}

	public void setWageCurrentService(WageCurrentService wageCurrentService) {
		this.wageCurrentService = wageCurrentService;
	}




	 

	 

 
}
